package com.qjc.mq.model;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * @ClassName: OrderStep
 * @Description:
 * @Author: qjc
 * @Date: 2021/12/13 4:23 下午
 */
@Data
public class OrderStep {

    // 订单id
    private String id;

    // 操作步骤
    private String desc;

    public OrderStep(String id, String desc) {
        this.id = id;
        this.desc = desc;
    }

    public static List<OrderStep> buildOrderSteps(String id) {
        List<OrderStep> orderSteps = new ArrayList<>();
        OrderStep createStep = new OrderStep(id, "订单创建");
        orderSteps.add(createStep);
        OrderStep payOrder = new OrderStep(id, "订单付款");
        orderSteps.add(payOrder);
        OrderStep callBackOrder = new OrderStep(id, "订单完成");
        orderSteps.add(callBackOrder);
        return orderSteps;
    }

}
